<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <title></title>
    <link href="/styles/base.css" rel="stylesheet" type="text/css">
    <link href="/styles/regist.css" rel="stylesheet" type="text/css">
    <script type="text/javascript" src="/js/jquery/jquery.js"></script>
    <script type="text/javascript" src="/js/plugins/jquery-form/jquery.form.js"></script>
    <script src="/js/plugins/js-cookie/js.cookie.min.js"></script>
    <script src="/js/vue/md5.js"></script>
    <script type="text/javascript" src="/js/vue/common.js"></script>
    <script type="text/javascript" src="/js/system/regist.js"></script>

</head>
<body>
<script>
    $(function () {

        //需求:页面通过/users/currentUser接口获取redis中当前登录用户信息
        //此写法有bug, 没法将页面缓存token携带到接口
        /*$.get(domainUrl+"/users/currentUser", {}, function (data) {
            console.log(data);
        })*/
      /*  $.ajax({
            url:domainUrl+"/users/currentUser",
            data:{},
            beforeSend:function(xhr){ //请求发送前执行逻辑
                //xhr ajxa 执行对象
                xhr.setRequestHeader("token", Cookies.get('token'));
            },
            success:function (data) {
                console.log(data);
            }
        })*/

       /* ajaxGet("/users/currentUser",{}, function (data) {
            console.log(data);
        })*/

       /* ajaxGet("/travels/updateInfo",{nickname:"dafei"}, function (data) {
            console.log(data);
        })

        ajaxGet("/travels/info",{nickname:"dafei"}, function (data) {
            console.log(data);
        })
*/

       //防篡改操作
        //签名: sign_client
       ajaxGet("/test2", {aa:1, bb:2, cc:3}, function (data) {
           console.log(data);
       })




    })

</script>



</body>
</html>